import hilog from '@ohos.hilog';
import UIAbility from '@ohos.app.ability.UIAbility';
import Window from '@ohos.window';
import abilityAccessCtrl from '@ohos.abilityAccessCtrl';
// 引入开放能力包
import agconnect from '@hw-agconnect/api-ohos'
import '@hw-agconnect/core-ohos'
import '@hw-agconnect/auth-ohos'
import '@hw-agconnect/function-ohos'

export default class EntryAbility extends UIAbility {

  onCreate() {
    // 对 agconnect进行初始化
    agconnect.instance().init(this.context.getApplicationContext())


    AppStorage.SetOrCreate('isLoading', false)
  }

  onWindowStageCreate(windowStage: Window.WindowStage) {
    windowStage.loadContent('pages/Login', (err, data) => {
    });
  }
}
